-- GENERATED SPELL FOR [Geolord Mottle] --


function spell0_5826(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(547,pUnit)
pUnit:RegisterEvent('Sorts_5826', 2500, 1)
end

function spell1_5826(pUnit, Event) --@Lightning Shield,Self--
pUnit:FullCastSpellOnTarget(324,pUnit)
pUnit:RegisterEvent('Sorts_5826', 529, 1)
end

function Sorts_5826(pUnit, Event)
local choix_sorts_5826 = math.random(0, 1)
if choix_sorts_5826 == 0 then
pUnit:RegisterEvent('spell0_5826', 1, 1)
end
if choix_sorts_5826 == 1 then
pUnit:RegisterEvent('spell1_5826', 1, 1)
end
end

function mob5826_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5826', math.random(1500, 3000), 1)
end

function mob5826_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5826_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5826_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5826, 1, 'mob5826_Action')
RegisterUnitEvent(5826, 2, 'mob5826_Leave')
RegisterUnitEvent(5826, 3, 'mob5826_Kill')
RegisterUnitEvent(5826, 4, 'mob5826_Die')
